package com.rms.server.DTO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@Schema(name = "DishWithIngredientsDTO", description = "包含菜品及其相关原料信息的数据传输对象")
public class DishWithIngredientsDTO {

    @Schema(description = "菜品的唯一标识符")
    private Long dishId;

    @Schema(description = "菜品的名称")
    private String dishName;

    @Schema(description = "菜品所需的原料列表")
    private List<IngredientInfoDTO> ingredients = new ArrayList<>(); // 初始化为一个空的 ArrayList;
}